<HTML>
<HEAD><TITLE> 
	ClientTraceWriter
</TITLE></HEAD>

<%@ page language="java" import="java.io.*" %>

<%
	if (request.getParameter("userHistory") != null){
		String strUserHistory = request.getParameter("userHistory");
		out.println( strUserHistory );	

		String logName	= "tuin_proxy/userTrace.log";
		String strLogFile =getServletContext().getRealPath(logName);
		out.println( "log file " + strLogFile );

		//String strLogFile	= "d:\\LogFile.log";
		//String strLogFile	= "./webapps/ROOT/tuin_proxy/LogFile.log";
		File logFile		= new File(strLogFile);
		BufferedWriter writer = new BufferedWriter(new FileWriter(logFile, true));
		writer.append(strUserHistory + "\n");
		writer.flush();
		writer.close();
	}
%>

</BODY>
</HTML>




